const express=require('express');
const app=express();
app.use(express.static('public'))
const p1=require('body-parser');
app.use(p1.urlencoded({extended:true}));
app.get('/ysxget',(req,res)=>{
console.log(req.query);
res.send('返回响应')
})
// app.post('')
app.post('/mjlpost',(req,res)=>{
    console.log(req.body);
    res.send('这是post')
})
app.listen(3000,err=>{
    if(!err) console.log('服务器启动成功');
    else console.log(err);
})